/**
 * 规则设置接口文件
 */
import fetch from 'common/src/utils/fetch';
const baseUrl = "/api/compulsoryservice";

// 表格查询API
export const pageListApi = `${baseUrl}/thesisSymposiumRuleT/query`;

// 规则设置表格查询
export function queryList(data) {
  return fetch({
      url: `${baseUrl}/thesisSymposiumRuleT/query`,
      method: 'post',
      data
  })
}

// 规则设置新增、编辑
export function addOrUpdate(data) {
  return fetch({
      url: `${baseUrl}/thesisSymposiumRuleT/addOrUpdate`,
      method: 'post',
      data
  })
}

// 规则设置删除
export function ruleSettingDelete(data) {
  return fetch({
      url: `${baseUrl}/thesisSymposiumRuleT/delete`,
      method: 'post',
      data
  })
}

// 规则设置_获取详情
export function getDetail(data) {
  return fetch({
      url: `${baseUrl}/thesisSymposiumRuleT/getDetail?id=${data}`,
      method: 'get'
  })
}
